package com.chen.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Vip {
    private Integer vipId; //会员id
    private String vipNo; //会员学号
    private String vipLoginName; //登录名称
    private String vipName; //会员名称
    private String vipPassword; //密码
    private String vipGrade; //年级
    private String vipCollege; //学院
    private String vipMajor; //专业
    private Integer vipSex; //性别
    private String vipPhone; //电话
    private String vipEmail; //邮箱
    private Integer vipRole; //会员角色
    private Integer vipDeptId; //部门id
    @JsonFormat(pattern="yyyy-MM-dd", timezone="Europe/Zagreb")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vipHireDate; //入职日期
    private Integer createdBy; //创建者
    @JsonFormat(pattern="yyyy-MM-dd", timezone="Europe/Zagreb")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date creationDate; //创建时间
    @JsonFormat(pattern="yyyy-MM-dd", timezone="Europe/Zagreb")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vipTime; //注册时间
    private String remark; //备注
    private String vipRoleName; //会员角色名称
    private String deptName; //会员角色名称

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Vip() {
    }

    public Vip(Integer vipId, String vipNo, String vipLoginName, String vipName, String vipPassword, String vipGrade, String vipCollege, String vipMajor, Integer vipSex, String vipPhone, String vipEmail, Integer vipRole, Integer vipDeptId, Date vipHireDate, Integer createdBy, Date creationDate, Date vipTime, String remark, String vipRoleName, String deptName) {
        this.vipId = vipId;
        this.vipNo = vipNo;
        this.vipLoginName = vipLoginName;
        this.vipName = vipName;
        this.vipPassword = vipPassword;
        this.vipGrade = vipGrade;
        this.vipCollege = vipCollege;
        this.vipMajor = vipMajor;
        this.vipSex = vipSex;
        this.vipPhone = vipPhone;
        this.vipEmail = vipEmail;
        this.vipRole = vipRole;
        this.vipDeptId = vipDeptId;
        this.vipHireDate = vipHireDate;
        this.createdBy = createdBy;
        this.creationDate = creationDate;
        this.vipTime = vipTime;
        this.remark = remark;
        this.vipRoleName = vipRoleName;
        this.deptName = deptName;
    }

    public Integer getVipId() {
        return vipId;
    }

    public void setVipId(Integer vipId) {
        this.vipId = vipId;
    }

    public String getVipNo() {
        return vipNo;
    }

    public void setVipNo(String vipNo) {
        this.vipNo = vipNo;
    }

    public String getVipLoginName() {
        return vipLoginName;
    }

    public void setVipLoginName(String vipLoginName) {
        this.vipLoginName = vipLoginName;
    }

    public String getVipName() {
        return vipName;
    }

    public void setVipName(String vipName) {
        this.vipName = vipName;
    }

    public String getVipPassword() {
        return vipPassword;
    }

    public void setVipPassword(String vipPassword) {
        this.vipPassword = vipPassword;
    }

    public String getVipGrade() {
        return vipGrade;
    }

    public void setVipGrade(String vipGrade) {
        this.vipGrade = vipGrade;
    }

    public String getVipCollege() {
        return vipCollege;
    }

    public void setVipCollege(String vipCollege) {
        this.vipCollege = vipCollege;
    }

    public String getVipMajor() {
        return vipMajor;
    }

    public void setVipMajor(String vipMajor) {
        this.vipMajor = vipMajor;
    }

    public Integer getVipSex() {
        return vipSex;
    }

    public void setVipSex(Integer vipSex) {
        this.vipSex = vipSex;
    }

    public String getVipPhone() {
        return vipPhone;
    }

    public void setVipPhone(String vipPhone) {
        this.vipPhone = vipPhone;
    }

    public String getVipEmail() {
        return vipEmail;
    }

    public void setVipEmail(String vipEmail) {
        this.vipEmail = vipEmail;
    }

    public Integer getVipRole() {
        return vipRole;
    }

    public void setVipRole(Integer vipRole) {
        this.vipRole = vipRole;
    }

    public Integer getVipDeptId() {
        return vipDeptId;
    }

    public void setVipDeptId(Integer vipDeptId) {
        this.vipDeptId = vipDeptId;
    }

    public Date getVipHireDate() {
        return vipHireDate;
    }

    public void setVipHireDate(Date vipHireDate) {
        this.vipHireDate = vipHireDate;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Date getVipTime() {
        return vipTime;
    }

    public void setVipTime(Date vipTime) {
        this.vipTime = vipTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getVipRoleName() {
        return vipRoleName;
    }

    public void setVipRoleName(String vipRoleName) {
        this.vipRoleName = vipRoleName;
    }

    @Override
    public String toString() {
        return "Vip{" +
                "vipId=" + vipId +
                ", vipNo='" + vipNo + '\'' +
                ", vipLoginName='" + vipLoginName + '\'' +
                ", vipName='" + vipName + '\'' +
                ", vipPassword='" + vipPassword + '\'' +
                ", vipGrade='" + vipGrade + '\'' +
                ", vipCollege='" + vipCollege + '\'' +
                ", vipMajor='" + vipMajor + '\'' +
                ", vipSex=" + vipSex +
                ", vipPhone='" + vipPhone + '\'' +
                ", vipEmail='" + vipEmail + '\'' +
                ", vipRole=" + vipRole +
                ", vipDeptId=" + vipDeptId +
                ", vipHireDate=" + vipHireDate +
                ", createdBy=" + createdBy +
                ", creationDate=" + creationDate +
                ", vipTime=" + vipTime +
                ", remark='" + remark + '\'' +
                ", vipRoleName='" + vipRoleName + '\'' +
                ", deptName='" + deptName + '\'' +
                '}';
    }
}
